\hypertarget{class_q_c_p_statistical_box}{}\section{Q\+C\+P\+Statistical\+Box Class Reference}
\label{class_q_c_p_statistical_box}\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}


A plottable representing a single statistical box in a plot.  


Inheritance diagram for Q\+C\+P\+Statistical\+Box\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=4.000000cm]{class_q_c_p_statistical_box}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_q_c_p_statistical_box_a75c2b3e7fcd0741cc981693a2ba63b27}{Q\+C\+P\+Statistical\+Box}} (\mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}} $\ast$key\+Axis, \mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}} $\ast$value\+Axis)
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a0543a2d25346376ba44a42817206cc42}\label{class_q_c_p_statistical_box_a0543a2d25346376ba44a42817206cc42}} 
double {\bfseries key} () const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_ac5d07f908a9c49c81e2c7ff9dc8831e2}\label{class_q_c_p_statistical_box_ac5d07f908a9c49c81e2c7ff9dc8831e2}} 
double {\bfseries minimum} () const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_afe9c3814cb02e3dffbe260f6bdb42d5e}\label{class_q_c_p_statistical_box_afe9c3814cb02e3dffbe260f6bdb42d5e}} 
double {\bfseries lower\+Quartile} () const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_acde7599a12b0f73653ae8c681bf0bda0}\label{class_q_c_p_statistical_box_acde7599a12b0f73653ae8c681bf0bda0}} 
double {\bfseries median} () const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_affa4149e6abe33edb734c611410939b6}\label{class_q_c_p_statistical_box_affa4149e6abe33edb734c611410939b6}} 
double {\bfseries upper\+Quartile} () const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a5ca15d360056689b6fe9180b835e26c9}\label{class_q_c_p_statistical_box_a5ca15d360056689b6fe9180b835e26c9}} 
double {\bfseries maximum} () const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a0a2c04824caeeabc4987a7a3ccf6b693}\label{class_q_c_p_statistical_box_a0a2c04824caeeabc4987a7a3ccf6b693}} 
Q\+Vector$<$ double $>$ {\bfseries outliers} () const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_ae589b7481dec6ef8e50ebb6492d296f1}\label{class_q_c_p_statistical_box_ae589b7481dec6ef8e50ebb6492d296f1}} 
double {\bfseries width} () const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_aacfa6686c7cf4af18794ec02354f4782}\label{class_q_c_p_statistical_box_aacfa6686c7cf4af18794ec02354f4782}} 
double {\bfseries whisker\+Width} () const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a67e5144f07645fe25c31001c460817fc}\label{class_q_c_p_statistical_box_a67e5144f07645fe25c31001c460817fc}} 
Q\+Pen {\bfseries whisker\+Pen} () const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a47ed9ad9d2ca65640319a2f071982ed4}\label{class_q_c_p_statistical_box_a47ed9ad9d2ca65640319a2f071982ed4}} 
Q\+Pen {\bfseries whisker\+Bar\+Pen} () const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_af767bc7b6b477d005535314b35aca683}\label{class_q_c_p_statistical_box_af767bc7b6b477d005535314b35aca683}} 
Q\+Pen {\bfseries median\+Pen} () const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_aef92e38fcb8e5041a44c2e01886e3b66}\label{class_q_c_p_statistical_box_aef92e38fcb8e5041a44c2e01886e3b66}} 
\mbox{\hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style}} {\bfseries outlier\+Style} () const
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_a84a1c6d34b2f9af40bca0c527d51e97e}{set\+Key}} (double key)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{set\+Minimum}} (double value)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_a680941af5e23d902013962fa67223f9e}{set\+Lower\+Quartile}} (double value)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_a65970e77a897da4ecb4b15300868aad3}{set\+Median}} (double value)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_a65a1375f941c5a2077b5201229e89346}{set\+Upper\+Quartile}} (double value)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{set\+Maximum}} (double value)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_af9bc09620e0bf93bf444ee35e5800d1d}{set\+Outliers}} (const Q\+Vector$<$ double $>$ \&values)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_adf50c57b635edb12470c0e4a986aff37}{set\+Data}} (double key, double minimum, double lower\+Quartile, double median, double upper\+Quartile, double maximum)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}{set\+Width}} (double width)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}{set\+Whisker\+Width}} (double width)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}{set\+Whisker\+Pen}} (const Q\+Pen \&pen)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}{set\+Whisker\+Bar\+Pen}} (const Q\+Pen \&pen)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_a7260ac55b669f5d0a74f16d5ca84c52c}{set\+Median\+Pen}} (const Q\+Pen \&pen)
\item 
void \mbox{\hyperlink{class_q_c_p_statistical_box_ad5241943422eb8e58360a97e99ad6aa7}{set\+Outlier\+Style}} (const \mbox{\hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style}} \&style)
\item 
virtual void \mbox{\hyperlink{class_q_c_p_statistical_box_a19112994449df0c20287858436cc68e3}{clear\+Data}} ()
\item 
virtual double \mbox{\hyperlink{class_q_c_p_statistical_box_a0153ac16326b94450afbca208e3f9961}{select\+Test}} (const Q\+PointF \&pos, bool only\+Selectable, Q\+Variant $\ast$details=0) const
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a753b62761217dd6b92f8a29e286a1317}\label{class_q_c_p_statistical_box_a753b62761217dd6b92f8a29e286a1317}} 
virtual void {\bfseries draw} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter)
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a41c6193fd24f5c1b6c754e7bcfe3e174}\label{class_q_c_p_statistical_box_a41c6193fd24f5c1b6c754e7bcfe3e174}} 
virtual void {\bfseries draw\+Legend\+Icon} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter, const Q\+RectF \&rect) const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_ac17d9d68e41be25b7f0e8a47f9a5d225}\label{class_q_c_p_statistical_box_ac17d9d68e41be25b7f0e8a47f9a5d225}} 
virtual \mbox{\hyperlink{class_q_c_p_range}{Q\+C\+P\+Range}} {\bfseries get\+Key\+Range} (bool \&found\+Range, \mbox{\hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8}{Sign\+Domain}} in\+Sign\+Domain=\mbox{\hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60}{sd\+Both}}) const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a13958798713d4bb58b94e148b409877d}\label{class_q_c_p_statistical_box_a13958798713d4bb58b94e148b409877d}} 
virtual \mbox{\hyperlink{class_q_c_p_range}{Q\+C\+P\+Range}} {\bfseries get\+Value\+Range} (bool \&found\+Range, \mbox{\hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8}{Sign\+Domain}} in\+Sign\+Domain=\mbox{\hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60}{sd\+Both}}) const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a699ede353d6a7207d9fb36dd3aabf348}\label{class_q_c_p_statistical_box_a699ede353d6a7207d9fb36dd3aabf348}} 
virtual void {\bfseries draw\+Quartile\+Box} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter, Q\+RectF $\ast$quartile\+Box=0) const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a642b90dd4ab5ab6e16188a9230401bcc}\label{class_q_c_p_statistical_box_a642b90dd4ab5ab6e16188a9230401bcc}} 
virtual void {\bfseries draw\+Median} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter) const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_ae64401aa18b9c45d4d33f9b46cf4bbd0}\label{class_q_c_p_statistical_box_ae64401aa18b9c45d4d33f9b46cf4bbd0}} 
virtual void {\bfseries draw\+Whiskers} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter) const
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a8550e16af27b4e05d92bb337fb34324f}\label{class_q_c_p_statistical_box_a8550e16af27b4e05d92bb337fb34324f}} 
virtual void {\bfseries draw\+Outliers} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter) const
\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a415e2f77a89396c2af999afe027bdf6c}\label{class_q_c_p_statistical_box_a415e2f77a89396c2af999afe027bdf6c}} 
Q\+Vector$<$ double $>$ {\bfseries m\+Outliers}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a86fd1d3be5c5bc11d11eda7517069af4}\label{class_q_c_p_statistical_box_a86fd1d3be5c5bc11d11eda7517069af4}} 
double {\bfseries m\+Key}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a7143ece4e7e5f9ac010739fbc390bf0c}\label{class_q_c_p_statistical_box_a7143ece4e7e5f9ac010739fbc390bf0c}} 
double {\bfseries m\+Minimum}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_acac86cac93d9fa3d820b5aaa04ed96f6}\label{class_q_c_p_statistical_box_acac86cac93d9fa3d820b5aaa04ed96f6}} 
double {\bfseries m\+Lower\+Quartile}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_ae43287ca13c8166bde2ac19bf0969d23}\label{class_q_c_p_statistical_box_ae43287ca13c8166bde2ac19bf0969d23}} 
double {\bfseries m\+Median}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a865afbcca332ee851aa45807381bc80e}\label{class_q_c_p_statistical_box_a865afbcca332ee851aa45807381bc80e}} 
double {\bfseries m\+Upper\+Quartile}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a16266f1e0e4e8e95b5d141c49479ef2e}\label{class_q_c_p_statistical_box_a16266f1e0e4e8e95b5d141c49479ef2e}} 
double {\bfseries m\+Maximum}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_af365e40b0f706c3d76f857c7957f629d}\label{class_q_c_p_statistical_box_af365e40b0f706c3d76f857c7957f629d}} 
double {\bfseries m\+Width}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a4d166474f845d5db626e8b11a0815a6f}\label{class_q_c_p_statistical_box_a4d166474f845d5db626e8b11a0815a6f}} 
double {\bfseries m\+Whisker\+Width}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a25b7552499f0f090fcff02858b2265a5}\label{class_q_c_p_statistical_box_a25b7552499f0f090fcff02858b2265a5}} 
Q\+Pen {\bfseries m\+Whisker\+Pen}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_aa719b1d722a9f82364df1497a6dc1da8}\label{class_q_c_p_statistical_box_aa719b1d722a9f82364df1497a6dc1da8}} 
Q\+Pen {\bfseries m\+Whisker\+Bar\+Pen}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a1af5b601049c575f778ae270f40c9443}\label{class_q_c_p_statistical_box_a1af5b601049c575f778ae270f40c9443}} 
Q\+Pen {\bfseries m\+Median\+Pen}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_ae102e4187e1e6ba1f2df0f622b5171a4}\label{class_q_c_p_statistical_box_ae102e4187e1e6ba1f2df0f622b5171a4}} 
\mbox{\hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style}} {\bfseries m\+Outlier\+Style}
\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a1cdf9df76adcfae45261690aa0ca2198}\label{class_q_c_p_statistical_box_a1cdf9df76adcfae45261690aa0ca2198}} 
class {\bfseries Q\+Custom\+Plot}
\item 
\mbox{\Hypertarget{class_q_c_p_statistical_box_a8429035e7adfbd7f05805a6530ad5e3b}\label{class_q_c_p_statistical_box_a8429035e7adfbd7f05805a6530ad5e3b}} 
class {\bfseries Q\+C\+P\+Legend}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
A plottable representing a single statistical box in a plot. 



To plot data, assign it with the individual parameter functions or use \mbox{\hyperlink{class_q_c_p_statistical_box_adf50c57b635edb12470c0e4a986aff37}{set\+Data}} to set all parameters at once. The individual functions are\+: \begin{DoxyItemize}
\item \mbox{\hyperlink{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{set\+Minimum}} \item \mbox{\hyperlink{class_q_c_p_statistical_box_a680941af5e23d902013962fa67223f9e}{set\+Lower\+Quartile}} \item \mbox{\hyperlink{class_q_c_p_statistical_box_a65970e77a897da4ecb4b15300868aad3}{set\+Median}} \item \mbox{\hyperlink{class_q_c_p_statistical_box_a65a1375f941c5a2077b5201229e89346}{set\+Upper\+Quartile}} \item \mbox{\hyperlink{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{set\+Maximum}}\end{DoxyItemize}
Additionally you can define a list of outliers, drawn as scatter datapoints\+: \begin{DoxyItemize}
\item \mbox{\hyperlink{class_q_c_p_statistical_box_af9bc09620e0bf93bf444ee35e5800d1d}{set\+Outliers}}\end{DoxyItemize}
\hypertarget{class_q_c_p_statistical_box_appearance}{}\subsection{Changing the appearance}\label{class_q_c_p_statistical_box_appearance}
The appearance of the box itself is controlled via \mbox{\hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen}} and \mbox{\hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush}}. You may change the width of the box with \mbox{\hyperlink{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}{set\+Width}} in plot coordinates (not pixels).

Analog functions exist for the minimum/maximum-\/whiskers\+: \mbox{\hyperlink{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}{set\+Whisker\+Pen}}, \mbox{\hyperlink{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}{set\+Whisker\+Bar\+Pen}}, \mbox{\hyperlink{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}{set\+Whisker\+Width}}. The whisker width is the width of the bar at the top (maximum) and bottom (minimum).

The median indicator line has its own pen, \mbox{\hyperlink{class_q_c_p_statistical_box_a7260ac55b669f5d0a74f16d5ca84c52c}{set\+Median\+Pen}}.

If the whisker backbone pen is changed, make sure to set the cap\+Style to Qt\+::\+Flat\+Cap. Else, the backbone line might exceed the whisker bars by a few pixels due to the pen cap being not perfectly flat.

The Outlier data points are drawn as normal scatter points. Their look can be controlled with \mbox{\hyperlink{class_q_c_p_statistical_box_ad5241943422eb8e58360a97e99ad6aa7}{set\+Outlier\+Style}}\hypertarget{class_q_c_p_statistical_box_usage}{}\subsection{Usage}\label{class_q_c_p_statistical_box_usage}
Like all data representing objects in \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}}, the \mbox{\hyperlink{class_q_c_p_statistical_box}{Q\+C\+P\+Statistical\+Box}} is a plottable. Usually, you first create an instance and add it to the custom\+Plot\+: 
\begin{DoxyCodeInclude}
\end{DoxyCodeInclude}
and then modify the properties of the newly created plottable, e.\+g.\+: 
\begin{DoxyCodeInclude}
\end{DoxyCodeInclude}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_q_c_p_statistical_box_a75c2b3e7fcd0741cc981693a2ba63b27}\label{class_q_c_p_statistical_box_a75c2b3e7fcd0741cc981693a2ba63b27}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{Q\+C\+P\+Statistical\+Box()}{QCPStatisticalBox()}}
{\footnotesize\ttfamily Q\+C\+P\+Statistical\+Box\+::\+Q\+C\+P\+Statistical\+Box (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}} $\ast$}]{key\+Axis,  }\item[{\mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}} $\ast$}]{value\+Axis }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [explicit]}}

Constructs a statistical box which uses {\itshape key\+Axis} as its key axis (\char`\"{}x\char`\"{}) and {\itshape value\+Axis} as its value axis (\char`\"{}y\char`\"{}). {\itshape key\+Axis} and {\itshape value\+Axis} must reside in the same \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} instance and not have the same orientation. If either of these restrictions is violated, a corresponding message is printed to the debug output (q\+Debug), the construction is not aborted, though.

The constructed statistical box can be added to the plot with \mbox{\hyperlink{class_q_custom_plot_ab7ad9174f701f9c6f64e378df77927a6}{Q\+Custom\+Plot\+::add\+Plottable}}, \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} then takes ownership of the statistical box. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_q_c_p_statistical_box_a19112994449df0c20287858436cc68e3}\label{class_q_c_p_statistical_box_a19112994449df0c20287858436cc68e3}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!clear\+Data@{clear\+Data}}
\index{clear\+Data@{clear\+Data}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{clear\+Data()}{clearData()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::clear\+Data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Clears all data in the plottable. 

Implements \mbox{\hyperlink{class_q_c_p_abstract_plottable_a86e5b8fd4b6ff4f4084e7ea4c573fc53}{Q\+C\+P\+Abstract\+Plottable}}.

\mbox{\Hypertarget{class_q_c_p_statistical_box_a0153ac16326b94450afbca208e3f9961}\label{class_q_c_p_statistical_box_a0153ac16326b94450afbca208e3f9961}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!select\+Test@{select\+Test}}
\index{select\+Test@{select\+Test}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{select\+Test()}{selectTest()}}
{\footnotesize\ttfamily double Q\+C\+P\+Statistical\+Box\+::select\+Test (\begin{DoxyParamCaption}\item[{const Q\+PointF \&}]{pos,  }\item[{bool}]{only\+Selectable,  }\item[{Q\+Variant $\ast$}]{details = {\ttfamily 0} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}

This function is used to decide whether a click hits a layerable object or not.

{\itshape pos} is a point in pixel coordinates on the \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} surface. This function returns the shortest pixel distance of this point to the object. If the object is either invisible or the distance couldn\textquotesingle{}t be determined, -\/1.\+0 is returned. Further, if {\itshape only\+Selectable} is true and the object is not selectable, -\/1.\+0 is returned, too.

If the object is represented not by single lines but by an area like a \mbox{\hyperlink{class_q_c_p_item_text}{Q\+C\+P\+Item\+Text}} or the bars of a \mbox{\hyperlink{class_q_c_p_bars}{Q\+C\+P\+Bars}} plottable, a click inside the area should also be considered a hit. In these cases this function thus returns a constant value greater zero but still below the parent plot\textquotesingle{}s selection tolerance. (typically the selection\+Tolerance multiplied by 0.\+99).

Providing a constant value for area objects allows selecting line objects even when they are obscured by such area objects, by clicking close to the lines (i.\+e. closer than 0.\+99$\ast$selection\+Tolerance).

The actual setting of the selection state is not done by this function. This is handled by the parent \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} when the mouse\+Release\+Event occurs, and the finally selected object is notified via the select\+Event/deselect\+Event methods.

{\itshape details} is an optional output parameter. Every layerable subclass may place any information in {\itshape details}. This information will be passed to select\+Event when the parent \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} decides on the basis of this select\+Test call, that the object was successfully selected. The subsequent call to select\+Event will carry the {\itshape details}. This is useful for multi-\/part objects (like \mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}}). This way, a possibly complex calculation to decide which part was clicked is only done once in \mbox{\hyperlink{class_q_c_p_statistical_box_a0153ac16326b94450afbca208e3f9961}{select\+Test}}. The result (i.\+e. the actually clicked part) can then be placed in {\itshape details}. So in the subsequent select\+Event, the decision which part was selected doesn\textquotesingle{}t have to be done a second time for a single selection operation.

You may pass 0 as {\itshape details} to indicate that you are not interested in those selection details.

\begin{DoxySeeAlso}{See also}
select\+Event, deselect\+Event, \mbox{\hyperlink{class_q_custom_plot_a5ee1e2f6ae27419deca53e75907c27e5}{Q\+Custom\+Plot\+::set\+Interactions}} 
\end{DoxySeeAlso}


Implements \mbox{\hyperlink{class_q_c_p_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}{Q\+C\+P\+Abstract\+Plottable}}.

\mbox{\Hypertarget{class_q_c_p_statistical_box_adf50c57b635edb12470c0e4a986aff37}\label{class_q_c_p_statistical_box_adf50c57b635edb12470c0e4a986aff37}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Data@{set\+Data}}
\index{set\+Data@{set\+Data}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Data()}{setData()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Data (\begin{DoxyParamCaption}\item[{double}]{key,  }\item[{double}]{minimum,  }\item[{double}]{lower\+Quartile,  }\item[{double}]{median,  }\item[{double}]{upper\+Quartile,  }\item[{double}]{maximum }\end{DoxyParamCaption})}

Sets all parameters of the statistical box plot at once.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_statistical_box_a84a1c6d34b2f9af40bca0c527d51e97e}{set\+Key}}, \mbox{\hyperlink{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{set\+Minimum}}, \mbox{\hyperlink{class_q_c_p_statistical_box_a680941af5e23d902013962fa67223f9e}{set\+Lower\+Quartile}}, \mbox{\hyperlink{class_q_c_p_statistical_box_a65970e77a897da4ecb4b15300868aad3}{set\+Median}}, \mbox{\hyperlink{class_q_c_p_statistical_box_a65a1375f941c5a2077b5201229e89346}{set\+Upper\+Quartile}}, \mbox{\hyperlink{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{set\+Maximum}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_statistical_box_a84a1c6d34b2f9af40bca0c527d51e97e}\label{class_q_c_p_statistical_box_a84a1c6d34b2f9af40bca0c527d51e97e}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Key@{set\+Key}}
\index{set\+Key@{set\+Key}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Key()}{setKey()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Key (\begin{DoxyParamCaption}\item[{double}]{key }\end{DoxyParamCaption})}

Sets the key coordinate of the statistical box. \mbox{\Hypertarget{class_q_c_p_statistical_box_a680941af5e23d902013962fa67223f9e}\label{class_q_c_p_statistical_box_a680941af5e23d902013962fa67223f9e}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Lower\+Quartile@{set\+Lower\+Quartile}}
\index{set\+Lower\+Quartile@{set\+Lower\+Quartile}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Lower\+Quartile()}{setLowerQuartile()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Lower\+Quartile (\begin{DoxyParamCaption}\item[{double}]{value }\end{DoxyParamCaption})}

Sets the parameter \char`\"{}lower Quartile\char`\"{} of the statistical box plot. This is the lower end of the box. The lower and the upper quartiles are the two statistical quartiles around the median of the sample, they contain 50\% of the sample data.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_statistical_box_a65a1375f941c5a2077b5201229e89346}{set\+Upper\+Quartile}}, \mbox{\hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen}}, \mbox{\hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush}}, \mbox{\hyperlink{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}{set\+Width}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}\label{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Maximum@{set\+Maximum}}
\index{set\+Maximum@{set\+Maximum}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Maximum()}{setMaximum()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Maximum (\begin{DoxyParamCaption}\item[{double}]{value }\end{DoxyParamCaption})}

Sets the parameter \char`\"{}maximum\char`\"{} of the statistical box plot. This is the position of the upper whisker, typically the maximum measurement of the sample that\textquotesingle{}s not considered an outlier.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{set\+Minimum}}, \mbox{\hyperlink{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}{set\+Whisker\+Pen}}, \mbox{\hyperlink{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}{set\+Whisker\+Bar\+Pen}}, \mbox{\hyperlink{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}{set\+Whisker\+Width}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_statistical_box_a65970e77a897da4ecb4b15300868aad3}\label{class_q_c_p_statistical_box_a65970e77a897da4ecb4b15300868aad3}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Median@{set\+Median}}
\index{set\+Median@{set\+Median}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Median()}{setMedian()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Median (\begin{DoxyParamCaption}\item[{double}]{value }\end{DoxyParamCaption})}

Sets the parameter \char`\"{}median\char`\"{} of the statistical box plot. This is the value of the median mark inside the quartile box. The median separates the sample data in half (50\% of the sample data is below/above the median).

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_statistical_box_a7260ac55b669f5d0a74f16d5ca84c52c}{set\+Median\+Pen}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_statistical_box_a7260ac55b669f5d0a74f16d5ca84c52c}\label{class_q_c_p_statistical_box_a7260ac55b669f5d0a74f16d5ca84c52c}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Median\+Pen@{set\+Median\+Pen}}
\index{set\+Median\+Pen@{set\+Median\+Pen}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Median\+Pen()}{setMedianPen()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Median\+Pen (\begin{DoxyParamCaption}\item[{const Q\+Pen \&}]{pen }\end{DoxyParamCaption})}

Sets the pen used for drawing the median indicator line inside the statistical box. \mbox{\Hypertarget{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}\label{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Minimum@{set\+Minimum}}
\index{set\+Minimum@{set\+Minimum}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Minimum()}{setMinimum()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Minimum (\begin{DoxyParamCaption}\item[{double}]{value }\end{DoxyParamCaption})}

Sets the parameter \char`\"{}minimum\char`\"{} of the statistical box plot. This is the position of the lower whisker, typically the minimum measurement of the sample that\textquotesingle{}s not considered an outlier.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{set\+Maximum}}, \mbox{\hyperlink{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}{set\+Whisker\+Pen}}, \mbox{\hyperlink{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}{set\+Whisker\+Bar\+Pen}}, \mbox{\hyperlink{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}{set\+Whisker\+Width}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_statistical_box_af9bc09620e0bf93bf444ee35e5800d1d}\label{class_q_c_p_statistical_box_af9bc09620e0bf93bf444ee35e5800d1d}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Outliers@{set\+Outliers}}
\index{set\+Outliers@{set\+Outliers}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Outliers()}{setOutliers()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Outliers (\begin{DoxyParamCaption}\item[{const Q\+Vector$<$ double $>$ \&}]{values }\end{DoxyParamCaption})}

Sets a vector of outlier values that will be drawn as scatters. Any data points in the sample that are not within the whiskers (\mbox{\hyperlink{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{set\+Minimum}}, \mbox{\hyperlink{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{set\+Maximum}}) should be considered outliers and displayed as such.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_statistical_box_ad5241943422eb8e58360a97e99ad6aa7}{set\+Outlier\+Style}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_statistical_box_ad5241943422eb8e58360a97e99ad6aa7}\label{class_q_c_p_statistical_box_ad5241943422eb8e58360a97e99ad6aa7}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Outlier\+Style@{set\+Outlier\+Style}}
\index{set\+Outlier\+Style@{set\+Outlier\+Style}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Outlier\+Style()}{setOutlierStyle()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Outlier\+Style (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style}} \&}]{style }\end{DoxyParamCaption})}

Sets the appearance of the outlier data points.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_statistical_box_af9bc09620e0bf93bf444ee35e5800d1d}{set\+Outliers}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_statistical_box_a65a1375f941c5a2077b5201229e89346}\label{class_q_c_p_statistical_box_a65a1375f941c5a2077b5201229e89346}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Upper\+Quartile@{set\+Upper\+Quartile}}
\index{set\+Upper\+Quartile@{set\+Upper\+Quartile}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Upper\+Quartile()}{setUpperQuartile()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Upper\+Quartile (\begin{DoxyParamCaption}\item[{double}]{value }\end{DoxyParamCaption})}

Sets the parameter \char`\"{}upper Quartile\char`\"{} of the statistical box plot. This is the upper end of the box. The lower and the upper quartiles are the two statistical quartiles around the median of the sample, they contain 50\% of the sample data.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_statistical_box_a680941af5e23d902013962fa67223f9e}{set\+Lower\+Quartile}}, \mbox{\hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen}}, \mbox{\hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush}}, \mbox{\hyperlink{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}{set\+Width}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}\label{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Whisker\+Bar\+Pen@{set\+Whisker\+Bar\+Pen}}
\index{set\+Whisker\+Bar\+Pen@{set\+Whisker\+Bar\+Pen}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Whisker\+Bar\+Pen()}{setWhiskerBarPen()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Whisker\+Bar\+Pen (\begin{DoxyParamCaption}\item[{const Q\+Pen \&}]{pen }\end{DoxyParamCaption})}

Sets the pen used for drawing the whisker bars (Those are the lines parallel to the key axis at each end of the whisker backbone).

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}{set\+Whisker\+Pen}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}\label{class_q_c_p_statistical_box_a4a5034cb3b9b040444df05ab1684620b}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Whisker\+Pen@{set\+Whisker\+Pen}}
\index{set\+Whisker\+Pen@{set\+Whisker\+Pen}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Whisker\+Pen()}{setWhiskerPen()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Whisker\+Pen (\begin{DoxyParamCaption}\item[{const Q\+Pen \&}]{pen }\end{DoxyParamCaption})}

Sets the pen used for drawing the whisker backbone (That\textquotesingle{}s the line parallel to the value axis).

Make sure to set the {\itshape pen} cap\+Style to Qt\+::\+Flat\+Cap to prevent the whisker backbone from reaching a few pixels past the whisker bars, when using a non-\/zero pen width.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_statistical_box_aa8d3e503897788e1abf68dc74b5f147f}{set\+Whisker\+Bar\+Pen}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}\label{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Whisker\+Width@{set\+Whisker\+Width}}
\index{set\+Whisker\+Width@{set\+Whisker\+Width}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Whisker\+Width()}{setWhiskerWidth()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Whisker\+Width (\begin{DoxyParamCaption}\item[{double}]{width }\end{DoxyParamCaption})}

Sets the width of the whiskers (\mbox{\hyperlink{class_q_c_p_statistical_box_a84ff7cc61ba44890f0c3e0c99c19941e}{set\+Minimum}}, \mbox{\hyperlink{class_q_c_p_statistical_box_acec5ad1901f00f2c5387cfb4d9787eb3}{set\+Maximum}}) in key coordinates.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}{set\+Width}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}\label{class_q_c_p_statistical_box_a0b62775bd67301b1eba5c785f2b26f14}} 
\index{Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}!set\+Width@{set\+Width}}
\index{set\+Width@{set\+Width}!Q\+C\+P\+Statistical\+Box@{Q\+C\+P\+Statistical\+Box}}
\subsubsection{\texorpdfstring{set\+Width()}{setWidth()}}
{\footnotesize\ttfamily void Q\+C\+P\+Statistical\+Box\+::set\+Width (\begin{DoxyParamCaption}\item[{double}]{width }\end{DoxyParamCaption})}

Sets the width of the box in key coordinates.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_statistical_box_adf378812446bd66f34d1f7f293d991cd}{set\+Whisker\+Width}} 
\end{DoxySeeAlso}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/charts/qcustomplot/\mbox{\hyperlink{qcustomplot_8h}{qcustomplot.\+h}}\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/charts/qcustomplot/\mbox{\hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}}\end{DoxyCompactItemize}
